<?
    abstract class PrincipioLab_Controller_Action extends Zend_Controller_Action
    {
        protected $post_data;
        protected $is_post;
        protected $is_apply;


        public function init()
        {
            $this->post_data = $this->_request->getParams();

            if ($this->_request->isPost())
            {
                $this->is_post = true;
                $this->is_apply = (isset($this->post_data['apply']) && (intval($this->post_data['apply']) == 1));
            }
            else
            {
                $this->is_post = false;
                $this->is_apply = false;
            };

            parent::init();
        }
    };
?>